package com.luoqiu.yygh.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtil implements InitializingBean {

    @Value("${aliyun.mms.regionId}")
    private String regionId;

    @Value("${aliyun.mms.accessKey}")
    private String accessKey;

    @Value("${aliyun.mms.secret}")
    private String secret;

    public static String REGIONID;

    public static String ACCESSKEY;

    public static String SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        REGIONID = regionId;
        ACCESSKEY = accessKey;
        SECRET = secret;
    }
}
